feat(ui): add Agent Visibility preference to hide undetected agents#81
Merged
Conversation
…ed state - Relocate the All/Detected toggle from Appearance into the Agent Paths header - "Detected only" now hides and disables undetected agents (reversible) - Lock undetected agents' Enabled toggle while in Detected only mode - Persist the auto-disabled snapshot so the restore survives a restart - Add setEnabledBulk to batch-toggle agents without per-agent toasts Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Update the EN and zh-CN Overview captions to describe hiding/disabling undetected agents via the Detected only toggle, alongside the per-agent Enabled switch. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Only lock undetected agents in Detected only mode; detected agents stay toggleable (disabling them is the user's call) - Drop hover darkening on locked toggles and show a clearer "switch to All agents" tooltip - Trim the visibility hint copy (remove the contradictory "hides") - setEnabledBulk: use Promise.allSettled so one failed/stale agent does not drop store updates for the rest, with a generic failure toast Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The per-click handler only disabled undetected agents at the moment the user switched to "Detected only", so an agent added by a later app update (undetected, enabled by default) would show up enabled-but-locked and stay active in the backend while the user stayed in this mode. Move the disable into an App-level effect that reconciles whenever the agent list or visibility changes, so newly-added undetected agents are disabled (and recorded in the snapshot) on launch too. The effect converges — once disabled an agent is no longer enabled. handleVisibilityChange now only restores the snapshot when switching back to "All agents". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
|
Thanks for the PR! Pushed some changes on top:
Merged. Thanks again! |
RealZST
added a commit
that referenced
this pull request
Jun 8, 2026
…val live (#82) Follow-up to #81. Makes "Detected only" / agent-disable behaviour consistent and live. - A disabled agent (including ones Detected only auto-disables) is now hidden everywhere — Marketplace, the Agents page, and install targets, not just the Overview. Every surface filters by enabled; the redundant per-view agentVisibility checks are removed, leaving one concept (enabled) and one owner of visibility→enabled (the reconcile). Backend "install to all detected" fallbacks skip disabled agents too. - Agent install/removal is reflected live: runScan refetches agents on focus, and the reconcile is bidirectional (disable undetected, re-enable once detected again). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Author
Amazing improvement! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Add Agent Visibility preference (
All agents/Detected only) to hide undetected agents from Overview, Agents sidebar, and Extensions filter.Motivation
As more agents are supported, showing all at once can feel overwhelming. This setting lets users show only detected agents to declutter the UI, without affecting Settings Agent Paths, install targets, or backend APIs.
Verification
npx vitest run src/stores/__tests__/ui-store.test.ts